<template>
  <el-config-provider :locale="appStore.locale" :size="appStore.size">
    <router-view />
  </el-config-provider>
</template>

<script setup lang="ts">
import { useSettingsStore } from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import { useAppStore } from '@/store/modules/app';
const settingsStore = useSettingsStore();

const appStore = useAppStore();

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    settingsStore.sideTheme = 'theme-light';
  });
});
</script>

<style lang="scss">
  @use "assets/css/base.scss";
</style>
